package com.xxx.mall.mapper;

import com.xxx.mall.model.SpuAttrValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品规格属性关联信息 Mapper 接口
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-11-24
 */
public interface SpuAttrValueMapper extends BaseMapper<SpuAttrValue> {

    List<Long> queryIdsBySpuId(@Param("spuId") Long spuId);

    /**
     * 批量新增
     * @param saveList
     */
    void saveBatch(@Param("list") List<SpuAttrValue> saveList);

    void updateBatch(@Param("list")List<SpuAttrValue> updateList);

    /**
     * 批量删除
     * @param dbIds
     */
    void removeBatchByIds(@Param("list") List<Long> dbIds);
}
